package Interview;

public class D9 {
	
	public static int function(int num){
		int res = num&(-num);
		return res;
	}

	public static void main(String[] args) {
		System.out.println(5&-5);
		System.out.println(15&-15);
		System.out.println(511&-511);
		System.out.println(5111&-5111);
		System.out.println(5222&-5222);
	}
}
